package xfuzzy.alg_genetico.indeterminado.xfghlOld.model.hierStruct;

//import java.awt.image.CropImageFilter;

//import xfuzzy.lang.Specification;
//import xfuzzy.xfedit.Xfedit;
import xfuzzy.alg_genetico.indeterminado.xfghlOld.model.XfghlChromosome;
import xfuzzy.alg_genetico.indeterminado.xfghlOld.model.XfghlConfig;
import xfuzzy.alg_genetico.indeterminado.xfghlOld.model.XfghlGenerateConfig;
import xfuzzy.alg_genetico.indeterminado.xfghlOld.model.XfghlGeneration;
import xfuzzy.alg_genetico.indeterminado.xfghlOld.model.XfghlLearnSpecif;
import xfuzzy.alg_genetico.indeterminado.xfghlOld.model.XfghlSinglRandom;
import xfuzzy.alg_genetico.indeterminado.xfghlOld.model.XfghlThread;
//import xfuzzy.xfghl.model.spec.XfghlSpecification;
import xfuzzy.xfhl.model.XfhlData;

public class pruebaXfghl {

	/**
	 * @param args
	 */
	@SuppressWarnings("unused")
	public static void main(String[] args) {


		//Una estructura con 
	/*	XfghlHierStruct hier=new XfghlHierStruct();
		
		XfghlINode mod=hier.getM();	
		
		mod.imprime();
				
		XfghlCounter count=new XfghlCounter(0); 
		mod=mod.insert(count, 1);		
		mod.imprime();
   */
		/*
		count.setCounter(1);
		mod=mod.insert(count, 2);		
		mod.imprime();
		count.setCounter(1);
		mod=mod.insert(count, 3);		
		mod.imprime();*/
		
		
		//Xfedit edit=new Xfedit(null,null);
		//edit.
		
		//int [] chromosome={0,1,2,3,4};
		
		int [] chromosome={2, 2, 7, 8, 7};
				
		
		XfghlSinglRandom.initialize(37563620);
		
		//Cargamos la configuraci�n del fichero de properties
		XfghlConfig config=XfghlGenerateConfig.getConfig();
				
		XfghlChromosome chrom=new XfghlChromosome(config,false);
		chrom.setChromosome(chromosome);
		
		XfghlGeneration gen=new XfghlGeneration(config,false);
		gen.addChromosome(chrom);
		
		XfghlLearnSpecif.setGeneration(gen);
		XfghlLearnSpecif.setConfig(config);
		
		XfghlThread thread=new XfghlThread(0,config,new XfhlData(1,3));
		
		chrom.getHierStruct().getM().imprime();
		
		//Xfedit edit=new Xfedit(null,chrom.getSpecification());
		//edit.setVisible(true);
		
		//thread.start();
		
		//chrom.getHierStruct();
		
		//chrom.getHierStruct().getM().imprime();
		
	}

}
